/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package battleship_client;

import battleship_client.screens.GameScreen;

/**
 *
 * @author omar
 */
public class ScreenThread extends Thread{
    
    private Controller cn = null;
    private GameScreen gs = null;
    
    public ScreenThread(Controller cnn){
        this.cn = cnn;
        this.gs = this.cn.getGSSingleton();
    }
    
    @Override
    public void run(){
            this.getGs().setVisible(true);
            this.getGs().setAttack(false);
    }

    /**
     * @return the cn
     */
    public Controller getCn() {
        return cn;
    }

    /**
     * @return the gs
     */
    public GameScreen getGs() {
        return gs;
    }
    
}
